﻿<%@ Page Language="C#" MasterPageFile="~/Globals/GenericMasterPage.master" AutoEventWireup="true" CodeFile="ABMEmpleados.aspx.cs" Inherits="Modules_EnfermedadesControlEstanque_ABMEmpleados" Title="Untitled Page" %>

<%@ Register Src="../../Controls/TecnoPezUpdateProgress.ascx" TagName="TecnoPezUpdateProgress"
    TagPrefix="uc3" %>

<%@ Register Src="../../Controls/TecnoPezPopUp.ascx" TagName="TecnoPezPopUp" TagPrefix="uc1" %>
<%@ Register Assembly="Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet"
    Namespace="Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet"
    TagPrefix="cc1" %>
<%@ Register Src="../../Controls/TecnopezDataGRIDABMView.ascx" TagName="TecnopezDataGRIDABMView"
    TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPHPrincipal" Runat="Server">
    <asp:ScriptManager ID="ScriptManagerEnfermedades" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanelEnfermedades" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
    <asp:Wizard ID="wzrABM" runat="server" ActiveStepIndex="1" BorderColor="#B5C7DE"
        BorderWidth="0px" Font-Names="Verdana" Font-Size="0.8em" DisplaySideBar="False">
        <StepStyle Font-Size="0.8em" ForeColor="#333333" VerticalAlign=Top />
        <SideBarStyle BackColor="#507CD1" Font-Size="0.9em" VerticalAlign="Top" />
        <NavigationButtonStyle BackColor="White" BorderColor="#507CD1" BorderStyle="Solid"
            BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" />
        <WizardSteps>
            <asp:WizardStep ID="wzrBusqueda" runat="server" StepType="Complete" Title="Busqueda">
    <table style="width: 100%" id="TableData" cellspacing="0">
        <tr>
            <td colspan="3" class="cabeceraTabla">
                Buscar empleados</td>
        </tr>
        <tr>
            <td style="width: 200px" class="columnaLabels">
                <asp:Label ID="lblBuscarNombre" runat="server" Text="Nombre" Width="200px"></asp:Label></td>
            <td style="width: 210px;" class="columnaData">
                <asp:TextBox ID="txtBuscarNombre" runat="server" Width="200px"></asp:TextBox></td>
            <td rowspan="2" valign="top">
                <asp:Button ID="cmdBuscar" runat="server" Text="Buscar" CssClass="Boton" Height="23px" Width="102px" BorderStyle="None" />
                <asp:Button ID="cmdNuevo" runat="server" Text="Nuevo" Width="102px" OnClick="cmdNuevo_Click" CssClass="Boton" Height="23px" />
            </td>
        </tr>
        <tr>
            <td style="width: 200px" class="columnaLabels">
                <asp:Label ID="lblBuscarNombreCientifico" runat="server" Text="Apellido" Width="200px"></asp:Label></td>
            <td style="width: 210px" class="columnaData">
                <asp:TextBox ID="txtBuscarApellido" runat="server" Width="200px"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="columnaLabels" style="width: 200px">
                <asp:Label ID="Label5" runat="server" Text="Documento" Width="200px"></asp:Label>
            </td>
            <td class="columnaData" style="width: 210px">
                <asp:TextBox ID="txtBuscarDocumento" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td rowspan="1" valign="top">
            </td>
        </tr>
        <tr>
            <td class="columnaLabels" style="width: 200px">
                <asp:Label ID="Label4" runat="server" Text="Estado" Width="200px"></asp:Label>
            </td>
            <td class="columnaData" style="width: 210px">
                <asp:CheckBoxList ID="chkEstado" runat="server">
                    <asp:ListItem Selected="True" Value="1">Activos</asp:ListItem>
                    <asp:ListItem Selected="True" Value="0">Inactivos</asp:ListItem>
                </asp:CheckBoxList>
            </td>
            <td rowspan="1" valign="top">
            </td>
        </tr>
        <tr>
            <td colspan="3" style="height: 170px">
                <br />
                <uc2:TecnopezDataGRIDABMView ID="TecnopezDataGRIDABMView1" runat="server" />
                <br />
                &nbsp;<br />
            </td>
        </tr>
        </table>
        </asp:WizardStep>
            <asp:WizardStep ID="wzrEdicion" runat="server" StepType=Complete Title="Edicion">
        <table width="100%" cellspacing=0>
            <tr>
                <td colspan="4" class=cabeceraTabla style="height: 20px">
                    Datos del empleado</td>
            </tr>
        <tr>
            <td class="columnaLabels" style="width: 200px; height: 26px;">
                <asp:Label ID="Label1" runat="server" Text="C&#243;digo" Width="200px"></asp:Label></td>
            <td class="columnaData" style="width: 205px; height: 26px;">
                <asp:TextBox ID="txtID" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td class="columnaData" style="height: 26px;">
                &nbsp;</td>
            <td style="width: 7px" rowspan="2" valign="top">
                <asp:Button ID="cmdEditar" runat="server" Text="Editar" Width="102px" OnClick="cmdEditar_Click" CssClass="Boton" Height="23px" CausesValidation="False" />
                <asp:Button ID="cmdEliminar" runat="server" Text="Eliminar" OnClick="cmdEliminar_Click" CssClass="Boton" Height="23px" Width="102px" CausesValidation="False" />
            </td>
        </tr>
        <tr>
            <td class="columnaLabels" style="width: 200px">
                <asp:Label ID="Label2" runat="server" Text="Nombre" Width="200px"></asp:Label></td>
            <td class="columnaData" style="width: 205px">
                <asp:TextBox ID="txtNombre" runat="server" Width="200px" MaxLength=30></asp:TextBox>
            </td>
            <td class="columnaData">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNombre">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="columnaLabels" style="width: 200px">
                <asp:Label ID="Label3" runat="server" Text="Apellido" Width="200px"></asp:Label></td>
            <td class="columnaData" style="width: 205px">
                <asp:TextBox ID="txtApellido" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td class="columnaData">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtApellido">*</asp:RequiredFieldValidator>
            </td>
            <td style="width: 7px">
            </td>
        </tr>
            <tr>
                <td class="columnaLabels" style="width: 200px">
                    <asp:Label ID="Label6" runat="server" Text="Tipo de documento" Width="200px"></asp:Label>
                </td>
                <td class="columnaData" style="width: 205px">
                    <uc1:TecnoPezPopUp ID="TPPTipoDocumento" runat="server" />
                </td>
                <td class="columnaData">
                    &nbsp;</td>
                <td style="width: 7px">
                </td>
            </tr>
            <tr>
                <td class="columnaLabels" style="width: 200px">
                    <asp:Label ID="Label7" runat="server" Text="N&#250;mero de documento" Width="200px"></asp:Label>
                </td>
                <td class="columnaData" style="width: 205px">
                    <asp:TextBox ID="txtNumeroDocumento" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td class="columnaData">
                    &nbsp;</td>
                <td style="width: 7px">
                </td>
            </tr>
            <tr>
                <td class="columnaLabels" style="width: 200px">
                    <asp:Label ID="Label8" runat="server" Text="Direcci&#243;n" Width="200px"></asp:Label>
                </td>
                <td class="columnaData" style="width: 205px">
                    <asp:TextBox ID="txtDireccion" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td class="columnaData">
                    &nbsp;</td>
                <td style="width: 7px">
                </td>
            </tr>
            <tr>
                <td class="columnaLabels" style="width: 200px">
                    <asp:Label ID="Label9" runat="server" Text="Tel&#233;fono" Width="200px"></asp:Label>
                </td>
                <td class="columnaData" style="width: 205px">
                    <asp:TextBox ID="txtTelefono" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td class="columnaData">
                    &nbsp;</td>
                <td style="width: 7px">
                </td>
            </tr>
            <tr>
                <td class="columnaLabels" style="width: 200px">
                    <asp:Label ID="Label10" runat="server" Text="Correo electr&#243;nico" Width="200px"></asp:Label>
                </td>
                <td class="columnaData" style="width: 205px">
                    <asp:TextBox ID="txtCorreoElectronico" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td class="columnaData">
                    &nbsp;</td>
                <td style="width: 7px">
                </td>
            </tr>
            <tr>
                <td class="columnaLabels" style="width: 200px">
                    <asp:Label ID="Label11" runat="server" Text="Legajo" Width="200px"></asp:Label>
                </td>
                <td class="columnaData" style="width: 205px">
                    <asp:TextBox ID="txtLegajo" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td class="columnaData">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtLegajo">*</asp:RequiredFieldValidator>
                </td>
                <td rowspan="2" style="width: 7px" valign="bottom">
                <asp:Button ID="cmdAceptar" runat="server" Text="Aceptar" OnClick="cmdAceptar_Click" CssClass="Boton" Height="23px" Width="102px" /><asp:Button ID="cmdCancelar" runat="server" Text="Cancelar" CssClass="Boton" Height="23px" Width="102px" CausesValidation="False" OnClick="cmdCancelar_Click" />
                </td>
            </tr>
            <tr>
                <td class="columnaLabels" style="width: 200px">
                    <asp:Label ID="Label12" runat="server" Text="Fecha de baja" Width="200px"></asp:Label>
                </td>
                <td class="columnaData" style="width: 205px">
                    <asp:TextBox ID="txtFechaBaja" runat="server" Width="200px"></asp:TextBox>
                    <br />
                    &nbsp;<asp:Button ID="cmdDarBaja" runat="server" Text="Dar de baja" OnClick="cmdDarBaja_Click" CssClass="Boton" Height="23px" Width="102px" CausesValidation="False" />
                </td>
                <td class="columnaData">
                    &nbsp;</td>
            </tr>
        <tr>
            <td valign="top" colspan="2" style="height: 25px">
                <asp:Label ID="_lblError" runat="server" CssClass=errorLabel></asp:Label>
                <br />
                <cc1:PropertyProxyValidator ID="PPVNombre" runat="server" DisplayMode="List" RulesetName=""></cc1:PropertyProxyValidator>
                <br />
                <cc1:PropertyProxyValidator ID="PPVApellido" runat="server" DisplayMode="List" RulesetName=""></cc1:PropertyProxyValidator>
                <br />
                <cc1:PropertyProxyValidator ID="PPVLegajo" runat="server" DisplayMode="List" RulesetName=""></cc1:PropertyProxyValidator>
            </td>
            <td colspan="1" style="height: 25px;" valign="top">
                &nbsp;</td>
            <td valign="top" style="width: 7px; height: 25px;">
            </td>
        </tr>
            <tr>
                <td colspan="2" style="height: 8px" valign="top">
                    &nbsp;
                </td>
                <td colspan="1" style="height: 8px;" valign="top">
                </td>
                <td style="width: 7px; height: 8px" valign="top">
                </td>
            </tr>
    </table>
                </asp:WizardStep>
        </WizardSteps>
        <SideBarButtonStyle BackColor="#507CD1" Font-Names="Verdana" ForeColor="White" />
        <HeaderStyle BackColor="#284E98" BorderColor="#EFF3FB" BorderStyle="Solid" BorderWidth="2px"
            Font-Bold="True" Font-Size="0.9em" ForeColor="White" HorizontalAlign="Center"/>
    </asp:Wizard>
        </ContentTemplate>
    </asp:UpdatePanel>
    <uc3:TecnoPezUpdateProgress ID="TecnoPezUpdateProgress1" runat="server" />
</asp:Content>

